package edu.cmu.arch.pipesandfilters.frame;

/**
 * Helper enum, used by frame variables to help identify the data type of
 * a frame variable.  This will allow other code to automatically convert to/from
 * correct number of bytes or other conversion necessary by data type.
 * @author Kyle Benedict (jbenedic@andrew.cmu.edu)
 */
public enum DataType {
	Integer(4),
	Long(8),
	Double(8);		
	int numberOfBytes;
	
	/**
	 * Get the number of bytes in the specific data type
	 * @return int
	 */
	public int getNumberOfBytes() {
		return numberOfBytes;
	}
	DataType(int numberOfBytes) {
		this.numberOfBytes = numberOfBytes;
	}	
}
